<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::span class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <div class="m-doc-include m-code m-inverted m-right-m m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__span_8h.html">&lt;bn_span.h&gt;</a></div>
          <div class="m-doc-template">template&lt;typename Type&gt;</div>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>span <span class="m-thin">class</span>
        </h1>
        <p><code>std::span</code> like container.</p>
        <table class="m-table m-fullwidth m-flat">
          <thead>
            <tr><th colspan="2">Template parameters</th></tr>
          </thead>
          <tbody>
            <tr>
              <td style="width: 1%">Type</td>
              <td>Element type.</td>
            </tr>
          </tbody>
        </table>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#pub-types">Public types</a></li>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>It doesn&#x27;t throw exceptions. Instead, asserts are used to ensure valid usage.</p>
        <section id="pub-types">
          <h2><a href="#pub-types">Public types</a></h2>
          <dl class="m-doc">
            <dt id="a77d91e8610a9f0e00252414caebaed8c">
              using <a href="#a77d91e8610a9f0e00252414caebaed8c" class="m-doc-self">value_type</a> = Type
            </dt>
            <dd>Value type alias.</dd>
            <dt id="a4494e29157a3b1facbd5c083fdb10353">
              using <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc-self">size_type</a> = int
            </dt>
            <dd>Size type alias.</dd>
            <dt id="aaf2a80ddc2397ea07b7c1c7bbcb6d276">
              using <a href="#aaf2a80ddc2397ea07b7c1c7bbcb6d276" class="m-doc-self">difference_type</a> = int
            </dt>
            <dd>Difference type alias.</dd>
            <dt id="a91a2bc42d2127b2d0aefa584c5ec0f23">
              using <a href="#a91a2bc42d2127b2d0aefa584c5ec0f23" class="m-doc-self">reference</a> = Type&amp;
            </dt>
            <dd>Reference alias.</dd>
            <dt id="a51eb3fa5449715348a3a63615e1f983c">
              using <a href="#a51eb3fa5449715348a3a63615e1f983c" class="m-doc-self">const_reference</a> = const Type&amp;
            </dt>
            <dd>Const reference alias.</dd>
            <dt id="aeadd26feb301af919377519a82aa8920">
              using <a href="#aeadd26feb301af919377519a82aa8920" class="m-doc-self">pointer</a> = Type*
            </dt>
            <dd>Pointer alias.</dd>
            <dt id="aafbbccf36cb50f52413194e4adde349c">
              using <a href="#aafbbccf36cb50f52413194e4adde349c" class="m-doc-self">const_pointer</a> = const Type*
            </dt>
            <dd>Const pointer alias.</dd>
            <dt id="a124e9e65b7748371f02db2375f748af9">
              using <a href="#a124e9e65b7748371f02db2375f748af9" class="m-doc-self">iterator</a> = Type*
            </dt>
            <dd>Iterator alias.</dd>
            <dt id="a4c5ebe75183caabcbeb150e626336a67">
              using <a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc-self">const_iterator</a> = const Type*
            </dt>
            <dd>Const iterator alias.</dd>
            <dt id="a985e3d9fa9b05a948d7e0c9ab771dd4b">
              using <a href="#a985e3d9fa9b05a948d7e0c9ab771dd4b" class="m-doc-self">reverse_iterator</a> = bn::reverse_iterator&lt;<a href="#a124e9e65b7748371f02db2375f748af9" class="m-doc">iterator</a>&gt;
            </dt>
            <dd>Reverse iterator alias.</dd>
            <dt id="afc2a8ec9d7fc9fd846f77e8625c6710d">
              using <a href="#afc2a8ec9d7fc9fd846f77e8625c6710d" class="m-doc-self">const_reverse_iterator</a> = bn::reverse_iterator&lt;<a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc">const_<wbr />iterator</a>&gt;
            </dt>
            <dd>Const reverse iterator alias.</dd>
          </dl>
        </section>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt id="abfcbe921d9b1a9aff69a63522459937f">
              <span class="m-doc-wrap-bumper"><a href="#abfcbe921d9b1a9aff69a63522459937f" class="m-doc-self">span</a>(</span><span class="m-doc-wrap">) <span class="m-label m-flat m-info">defaulted</span> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs an empty span.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#ae7010c46258454dc2edf1cf10311041f" class="m-doc">span</a>(</span><span class="m-doc-wrap"><a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> ptr,
              <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> size) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a view over the range [ptr, ptr + size).</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a90c91001a8b1a42fb5e064925af1c0c7" class="m-doc">span</a>(</span><span class="m-doc-wrap"><a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> first,
              <a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> last) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a view over the range [first, last).</dd>
            <dt id="ab2ea6bc6151ede795f927b154f7bf2f0">
              <div class="m-doc-template">template&lt;<a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> ArraySize&gt;</div>
              <span class="m-doc-wrap-bumper"><a href="#ab2ea6bc6151ede795f927b154f7bf2f0" class="m-doc-self">span</a>(</span><span class="m-doc-wrap"><a href="#a77d91e8610a9f0e00252414caebaed8c" class="m-doc">value_<wbr />type</a>(&amp;array)[ArraySize]) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a view over the given array.</dd>
            <dt id="a4aa6253f7a2c55843980bce854c36d2d">
              <div class="m-doc-template">template&lt;class OtherType, <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> ArraySize&gt;</div>
              <span class="m-doc-wrap-bumper"><a href="#a4aa6253f7a2c55843980bce854c36d2d" class="m-doc-self">span</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1array.html" class="m-doc">array</a>&lt;OtherType, ArraySize&gt;&amp; array) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a const view over the given <a href="classbn_1_1array.html" class="m-doc">bn::<wbr />array</a>.</dd>
            <dt id="a0407f5fe96735da56e0afd892a8e1561">
              <div class="m-doc-template">template&lt;class OtherType, <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> ArraySize&gt;</div>
              <span class="m-doc-wrap-bumper"><a href="#a0407f5fe96735da56e0afd892a8e1561" class="m-doc-self">span</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1array.html" class="m-doc">array</a>&lt;OtherType, ArraySize&gt;&amp; array) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a non-const view over the given <a href="classbn_1_1array.html" class="m-doc">bn::<wbr />array</a>.</dd>
            <dt id="a5edf497f3447bcb81f0dbec1a6c82c05">
              <div class="m-doc-template">template&lt;class OtherType&gt;</div>
              <span class="m-doc-wrap-bumper"><a href="#a5edf497f3447bcb81f0dbec1a6c82c05" class="m-doc-self">span</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&lt;OtherType&gt;&amp; other) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructs a span that is a view over a span of another type.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt id="a52738031a2b4c62ee3b1692a03370f40">
              <span class="m-doc-wrap-bumper">auto <a href="#a52738031a2b4c62ee3b1692a03370f40" class="m-doc-self">data</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#aafbbccf36cb50f52413194e4adde349c" class="m-doc">const_<wbr />pointer</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const pointer to the beginning of the referenced data.</dd>
            <dt id="a2c6067947342d061d7f5b971407c00f6">
              <span class="m-doc-wrap-bumper">auto <a href="#a2c6067947342d061d7f5b971407c00f6" class="m-doc-self">data</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a pointer to the beginning of the referenced data.</dd>
            <dt id="aca3efd969e0490edb1ffa47d996fea2c">
              <span class="m-doc-wrap-bumper">auto <a href="#aca3efd969e0490edb1ffa47d996fea2c" class="m-doc-self">size</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the number of referenced elements.</dd>
            <dt id="a80a618677f68c0154d0fa997cdcb93b7">
              <span class="m-doc-wrap-bumper">auto <a href="#a80a618677f68c0154d0fa997cdcb93b7" class="m-doc-self">size_bytes</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the number of referenced bytes.</dd>
            <dt id="adab5e462894f0e26d9812839d5dea751">
              <span class="m-doc-wrap-bumper">auto <a href="#adab5e462894f0e26d9812839d5dea751" class="m-doc-self">empty</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if it doesn&#x27;t reference any element.</dd>
            <dt id="ac89a25d83fa6e36e4fdccb9ac0faa506">
              <span class="m-doc-wrap-bumper">auto <a href="#ac89a25d83fa6e36e4fdccb9ac0faa506" class="m-doc-self">begin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the beginning of the span.</dd>
            <dt id="a10de99139ef242a12e4701be5c30020b">
              <span class="m-doc-wrap-bumper">auto <a href="#a10de99139ef242a12e4701be5c30020b" class="m-doc-self">begin</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a124e9e65b7748371f02db2375f748af9" class="m-doc">iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns an iterator to the beginning of the span.</dd>
            <dt id="ab05d3129adc6e74dcaa7867b0c4822d7">
              <span class="m-doc-wrap-bumper">auto <a href="#ab05d3129adc6e74dcaa7867b0c4822d7" class="m-doc-self">cbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the beginning of the span.</dd>
            <dt id="a9d4b1f66c6e8cbbaa9fe15ff8fd0a797">
              <span class="m-doc-wrap-bumper">auto <a href="#a9d4b1f66c6e8cbbaa9fe15ff8fd0a797" class="m-doc-self">end</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the end of the span.</dd>
            <dt id="a4b2cbb084a1750c0c55c04da85734a18">
              <span class="m-doc-wrap-bumper">auto <a href="#a4b2cbb084a1750c0c55c04da85734a18" class="m-doc-self">end</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a124e9e65b7748371f02db2375f748af9" class="m-doc">iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns an iterator to the end of the span.</dd>
            <dt id="aa6fb0a58f49ca21c07af6a800577ba37">
              <span class="m-doc-wrap-bumper">auto <a href="#aa6fb0a58f49ca21c07af6a800577ba37" class="m-doc-self">cend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a4c5ebe75183caabcbeb150e626336a67" class="m-doc">const_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const iterator to the end of the span.</dd>
            <dt id="a01b3143fcd3351467cdc1fec58eda620">
              <span class="m-doc-wrap-bumper">auto <a href="#a01b3143fcd3351467cdc1fec58eda620" class="m-doc-self">rbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#afc2a8ec9d7fc9fd846f77e8625c6710d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the end of the span.</dd>
            <dt id="a035240c1cce8c930d1eaf168094e2651">
              <span class="m-doc-wrap-bumper">auto <a href="#a035240c1cce8c930d1eaf168094e2651" class="m-doc-self">rbegin</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a985e3d9fa9b05a948d7e0c9ab771dd4b" class="m-doc">reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reverse iterator to the end of the span.</dd>
            <dt id="a58488dd7828b368b509e8a5ddc17dd2b">
              <span class="m-doc-wrap-bumper">auto <a href="#a58488dd7828b368b509e8a5ddc17dd2b" class="m-doc-self">crbegin</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#afc2a8ec9d7fc9fd846f77e8625c6710d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the end of the span.</dd>
            <dt id="a11fc2ad5b78178d86224c9e247eb73d2">
              <span class="m-doc-wrap-bumper">auto <a href="#a11fc2ad5b78178d86224c9e247eb73d2" class="m-doc-self">rend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#afc2a8ec9d7fc9fd846f77e8625c6710d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the begin of the span.</dd>
            <dt id="a1d34c91c355d051c56863b88b5e5fd9c">
              <span class="m-doc-wrap-bumper">auto <a href="#a1d34c91c355d051c56863b88b5e5fd9c" class="m-doc-self">rend</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a985e3d9fa9b05a948d7e0c9ab771dd4b" class="m-doc">reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reverse iterator to the begin of the span.</dd>
            <dt id="a6bf22c6c812bcad3201c39e8138303ad">
              <span class="m-doc-wrap-bumper">auto <a href="#a6bf22c6c812bcad3201c39e8138303ad" class="m-doc-self">crend</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#afc2a8ec9d7fc9fd846f77e8625c6710d" class="m-doc">const_<wbr />reverse_<wbr />iterator</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reverse iterator to the begin of the span.</dd>
            <dt id="ab2c4f5e093c3a1d1886e7b773e89bada">
              <span class="m-doc-wrap-bumper">auto <a href="#ab2c4f5e093c3a1d1886e7b773e89bada" class="m-doc-self">front</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a51eb3fa5449715348a3a63615e1f983c" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the first element.</dd>
            <dt id="a45469dd130ec344e1fe75ab4aaa619bd">
              <span class="m-doc-wrap-bumper">auto <a href="#a45469dd130ec344e1fe75ab4aaa619bd" class="m-doc-self">front</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a91a2bc42d2127b2d0aefa584c5ec0f23" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the first element.</dd>
            <dt id="a60b03bcd3bd925bd276292bc8232eea2">
              <span class="m-doc-wrap-bumper">auto <a href="#a60b03bcd3bd925bd276292bc8232eea2" class="m-doc-self">back</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="#a51eb3fa5449715348a3a63615e1f983c" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the last element.</dd>
            <dt id="ac94c35baa3c9c87ad501809ea9926e10">
              <span class="m-doc-wrap-bumper">auto <a href="#ac94c35baa3c9c87ad501809ea9926e10" class="m-doc-self">back</a>(</span><span class="m-doc-wrap">) -&gt; <a href="#a91a2bc42d2127b2d0aefa584c5ec0f23" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the last element.</dd>
            <dt id="a81fb641b8596fe125f62362ad2acd07a">
              <span class="m-doc-wrap-bumper">auto <a href="#a81fb641b8596fe125f62362ad2acd07a" class="m-doc-self">operator[]</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> index) const -&gt; <a href="#a51eb3fa5449715348a3a63615e1f983c" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the value stored at the specified index.</dd>
            <dt id="ac3378e359e379a5545cf821f8bb364a9">
              <span class="m-doc-wrap-bumper">auto <a href="#ac3378e359e379a5545cf821f8bb364a9" class="m-doc-self">operator[]</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> index) -&gt; <a href="#a91a2bc42d2127b2d0aefa584c5ec0f23" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the value stored at the specified index.</dd>
            <dt id="a520eb24487bd0becf6b8fcc4625930d6">
              <span class="m-doc-wrap-bumper">auto <a href="#a520eb24487bd0becf6b8fcc4625930d6" class="m-doc-self">at</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> index) const -&gt; <a href="#a51eb3fa5449715348a3a63615e1f983c" class="m-doc">const_<wbr />reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a const reference to the value stored at the specified index.</dd>
            <dt id="a5eb0773dcb2132c7b35f8cf140bb8a0a">
              <span class="m-doc-wrap-bumper">auto <a href="#a5eb0773dcb2132c7b35f8cf140bb8a0a" class="m-doc-self">at</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> index) -&gt; <a href="#a91a2bc42d2127b2d0aefa584c5ec0f23" class="m-doc">reference</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a reference to the value stored at the specified index.</dd>
            <dt id="a7b66d9ac6cfb0e0124b0f8095b9d0572">
              <span class="m-doc-wrap-bumper">auto <a href="#a7b66d9ac6cfb0e0124b0f8095b9d0572" class="m-doc-self">first</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> count) const -&gt; <a href="classbn_1_1span.html" class="m-doc">span</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a span that is a view over the first count elements of this span.</dd>
            <dt id="a1e0a6849f4ba37373f72e0174690150d">
              <span class="m-doc-wrap-bumper">auto <a href="#a1e0a6849f4ba37373f72e0174690150d" class="m-doc-self">last</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> count) const -&gt; <a href="classbn_1_1span.html" class="m-doc">span</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a span that is a view over the last count elements of this span.</dd>
            <dt id="a214e7cb183ba1a4b3d0912feb2df7fe5">
              <span class="m-doc-wrap-bumper">auto <a href="#a214e7cb183ba1a4b3d0912feb2df7fe5" class="m-doc-self">subspan</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> offset) const -&gt; <a href="classbn_1_1span.html" class="m-doc">span</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns a span that is a view over the elements of this span starting at offset.</dd>
            <dt id="aafbbef6ca149eeb547129cae2de68391">
              <span class="m-doc-wrap-bumper">auto <a href="#aafbbef6ca149eeb547129cae2de68391" class="m-doc-self">subspan</a>(</span><span class="m-doc-wrap"><a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> offset,
              <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> count) const -&gt; <a href="classbn_1_1span.html" class="m-doc">span</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Obtains a span that is a view over the count elements of this span starting at offset.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ae52072a710a8bb05160981ce72d4e543" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1span.html" class="m-doc">span</a>&amp; other) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of this span with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af225030c4adf3b5706d6769dfbd9333f" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Exchanges the contents of a span with those of another one.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a6f31749ddad82b3857e44693175ac677" class="m-doc">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Equal operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#adfad52d0ad027618a9377d5dc47e9ec8" class="m-doc">operator&lt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Less than operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ad9d92c3b3575a6a3d64c55a404ba3fdc" class="m-doc">operator&gt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Greater than operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ae8b47a2ed6fc3816cd92e74cac8ee955" class="m-doc">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Less than or equal operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a3197e4c7186d98fd6c1adeb9ced3c380" class="m-doc">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Greater than or equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="ae7010c46258454dc2edf1cf10311041f"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper"> bn::<wbr />span&lt;Type&gt;::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae7010c46258454dc2edf1cf10311041f" class="m-doc-self">span</a>(</span><span class="m-doc-wrap"><a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> ptr,
              <a href="#a4494e29157a3b1facbd5c083fdb10353" class="m-doc">size_<wbr />type</a> size) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructs a span that is a view over the range [ptr, ptr + size).</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">ptr</td>
                  <td>Pointer to the first element.</td>
                </tr>
                <tr>
                  <td>size</td>
                  <td>Elements count.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a90c91001a8b1a42fb5e064925af1c0c7"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper"> bn::<wbr />span&lt;Type&gt;::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a90c91001a8b1a42fb5e064925af1c0c7" class="m-doc-self">span</a>(</span><span class="m-doc-wrap"><a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> first,
              <a href="#aeadd26feb301af919377519a82aa8920" class="m-doc">pointer</a> last) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructs a span that is a view over the range [first, last).</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">first</td>
                  <td>Pointer to the first element.</td>
                </tr>
                <tr>
                  <td>last</td>
                  <td>Pointer to the element after the last.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae52072a710a8bb05160981ce72d4e543"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">void bn::<wbr />span&lt;Type&gt;::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae52072a710a8bb05160981ce72d4e543" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1span.html" class="m-doc">span</a>&amp; other) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of this span with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>span to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af225030c4adf3b5706d6769dfbd9333f"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af225030c4adf3b5706d6769dfbd9333f" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Exchanges the contents of a span with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a6f31749ddad82b3857e44693175ac677"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a6f31749ddad82b3857e44693175ac677" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first span is equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="adfad52d0ad027618a9377d5dc47e9ec8"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#adfad52d0ad027618a9377d5dc47e9ec8" class="m-doc-self">operator&lt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Less than operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first span is lexicographically less than the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad9d92c3b3575a6a3d64c55a404ba3fdc"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad9d92c3b3575a6a3d64c55a404ba3fdc" class="m-doc-self">operator&gt;</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Greater than operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first span is lexicographically greater than the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae8b47a2ed6fc3816cd92e74cac8ee955"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae8b47a2ed6fc3816cd92e74cac8ee955" class="m-doc-self">operator&lt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Less than or equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first span is lexicographically less than or equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a3197e4c7186d98fd6c1adeb9ced3c380"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;typename Type&gt;
              </div>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a3197e4c7186d98fd6c1adeb9ced3c380" class="m-doc-self">operator&gt;=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; a,
              const <a href="classbn_1_1span.html" class="m-doc">span</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Greater than or equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First span to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second span to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first span is lexicographically greater than or equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
